package com.liuchong.rent.entity;

import java.util.Date;
import java.util.NoSuchElementException;

public class Rent {
    private Long id;
    private String card_id;
    private String item_id;
    private Character item_status;
    private Date borrowing_date;
    private Date return_Date;

    public Long getId(){
        if (id == null) {
            throw new NoSuchElementException("No id present");
        }
        return id;
    }
    public void setId(Long id){
        this.id = id;
    }

    public String getCard_id(){
        if (card_id == null) {
            throw new NoSuchElementException("No card_id present");
        }
        return card_id;
    }
    public void setCard_id(String card_id){
        this.card_id = card_id;
    }

    public String getItem_id(){
        if (item_id == null) {
            throw new NoSuchElementException("No item_id present");
        }
        return item_id;
    }
    public void setItem_id(String item_id){
        this.item_id = item_id;
    }

    public Character getItem_status(){
        if (item_status == null) {
            throw new NoSuchElementException("No item_status present");
        }
        return item_status;
    }
    public void setItem_status(Character item_status){
        this.item_status = item_status;
    }

    public Date getBorrowing_date(){
        if (borrowing_date == null) {
            throw new NoSuchElementException("No borrowing_date present");
        }
        return borrowing_date;
    }
    public void setBorrowing_date(Date borrowing_date){
        this.borrowing_date = borrowing_date;
    }

    public Date getReturn_Date(){
        if (return_Date == null) {
            throw new NoSuchElementException("No return_Date present");
        }
        return return_Date;
    }
    public void setReturn_Date(Date return_Date){
        this.return_Date = return_Date;
    }
}
